package com.itheima.controller;

import com.github.pagehelper.Page;
import com.itheima.domain.pojo.OperateLog;
import com.itheima.domain.query.QueryParam;
import com.itheima.domain.vo.PageResult;
import com.itheima.domain.vo.Result;
import com.itheima.service.OperateLogService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author:篍
 * @Date: 2025/07/18 17:15
 * @Description:
 */
@RestController
@RequestMapping("/log")
@Slf4j
public class OperateLogController {

    @Autowired
    OperateLogService operateLogService;
    @GetMapping("/page")
    public Result pageListLog(QueryParam queryParam){
        PageResult<OperateLog> operateLogPage=operateLogService.pageListLog(queryParam);
        return Result.success(operateLogPage);
    }
}
